package com.example.movie_shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.movie_shop.entry.User;
import com.example.movie_shop.service.UserService;
import com.example.movie_shop.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author firefly
* @description 针对表【t_user】的数据库操作Service实现
* @createDate 2023-10-08 17:26:55
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user) {
        return userMapper.login(user.getUname(),user.getPassword());
    }

    @Override
    public User getByFace(String face_path) {
        return userMapper.getOneByFace(face_path);
    }
}




